﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Tinlienquan.aspx.vb" Inherits="NVPortal.Modules.NVNews.Tinlienquan" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Chọn tin liên quan</title>
<link href="/js/jquery-ui-1.8.13.custom.css" rel="stylesheet" type="text/css" />
<script src="/Resources/Shared/scripts/jquery/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" language="javascript" src="/js/jquery-ui-1.8.13.custom.min.js"></script>
<script type="text/javascript" language="javascript" src="/js/jquery.ui.datepicker-vi.js"></script>
<script type="text/javascript" language="JavaScript" src="/js/NVCorp.js"></script>
<style type="text/css">
.UN_Item, .SubHead {font-family:Arial; font-size: 12px; color:#434343;font-weight:normal;}
.UN_Header {background:#006699; font-family:Arial; font-size: 12px; color:#fff;}
</style>    
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 90%; margin: 0 auto;">
<table width="100%">
    <tr>
        <td><asp:label id="Label1" CssClass="SubHead" runat="server">Tiêu đề</asp:label></td>
        <td>
            <asp:TextBox ID="txtTitle" runat="server" Width="400px"></asp:TextBox></td>    
    </tr>
    <tr>
        <td><asp:label id="Label10" CssClass="SubHead" runat="server">Thư mục tin</asp:label>
        </td>
        <td>
        <asp:DropDownList ID="ddlCategory" runat="server">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td><asp:label id="Label3" CssClass="SubHead" runat="server">Người đăng</asp:label></td>
        <td>
            <asp:DropDownList ID="ddlUserPost" runat="server">
            </asp:DropDownList></td>    
    </tr>
    <tr>
        <td><asp:label id="Label5" CssClass="SubHead" runat="server">Ngày đăng</asp:label></td>
        <td>
            <table>
                <tr>
		            <td><asp:label id="Label4" CssClass="SubHead" runat="server">Từ ngày</asp:label></td>
		            <td><asp:textbox id="txtStartdate" runat="server" Width="96px" CssClass="DatetimePicker_Textbox"></asp:textbox></td>
			            
                    <td style="width:20px;"></td>
		            <td><asp:label id="Label6" CssClass="SubHead" runat="server">Đến ngày</asp:label></td>
		            <td><asp:textbox id="txtEndDate" runat="server"  Width="96px" CssClass="DatetimePicker_Textbox"></asp:textbox></td>
			           
	            </tr>
            </table>
        </td>
    </tr>
	<tr>
	    <td></td>
		<td><table cellpadding="0" cellspacing="0"><tr><td><img src="/images/icons/find.png" alt="Tìm tin" /></td><td><asp:linkbutton id="lbtFind" runat="server" Font-Bold="true">Tìm tin</asp:linkbutton></td></tr></table></td>
	</tr>
</table>
<table width="100%">
    <tr>
        <td>
            <table style="background-color:#d2d2d2; height:20px; padding: 5px 10px; font-family: Arial; font-size: 12px;" cellpadding="0" cellspacing="0" width="100%">
                <tr>
                    <td>Tổng số có <asp:Label ID="lbTotalNewsCount" runat="server" ForeColor="Maroon" Font-Bold="true" Text="00"></asp:Label> tin tìm được</td>
                    <td align="right">Hiển thị 
                        <asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="True">
                            <asp:ListItem>5</asp:ListItem>
                            <asp:ListItem>50</asp:ListItem>
                            <asp:ListItem>150</asp:ListItem>
                        </asp:DropDownList> tin / trang</td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <table cellpadding="0" cellspacing="0" width="100%" style="font-family: Arial; font-size: 12px; color: #434343;">
                <tr>
                    <td>
                        Chọn 
                        <asp:CheckBox ID="CheckBox1" runat="server" /> để 
                        <asp:LinkButton CssClass="SubHead" ID="lbtInsert" runat="server"><b>Chèn vào bài</b></asp:LinkButton>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
        <asp:datagrid id="drgDataViewer" DataKeyField ="NewId" Width="100%" runat="server" AllowPaging="true" AutoGenerateColumns="False"
	        CellPadding="3" BackColor="White" BorderWidth="1px" BorderStyle="None" BorderColor="#CCCCCC" PageSize="20">
	        <SelectedItemStyle Font-Bold="true" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
	        <ItemStyle ForeColor="#000066" Font-Names="Arial"></ItemStyle>
	        <FooterStyle ForeColor="#000066" Font-Names="Arial" BackColor="White"></FooterStyle>
	        <Columns>
	            <asp:TemplateColumn>
	                <HeaderTemplate>
                        <asp:CheckBox ID="chkItemsTop" runat="server" />
	                </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="chkItems" runat="server" />
                    </ItemTemplate>
                    <ItemStyle Width="20" />
                    <HeaderStyle CssClass="UN_Header" />
                </asp:TemplateColumn>
		        <asp:TemplateColumn HeaderText="Thông tin">
                    <ItemTemplate>
                        <b>Tiêu đề:</b> <asp:Label ID="Label6" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Title") %>'></asp:Label> <br />
                        <b>Ngày đăng: </b><asp:Label ID="Label8" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"CreateDate").ToShortDateString() %>'></asp:Label> <br />
                        <b>Số lần xem: </b><asp:Label ID="Labedfdsfl7" Font-Bold="true" ForeColor="Red" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Solandoc") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle CssClass="UN_Header" />
                    <ItemStyle CssClass="UN_Item" />
                </asp:TemplateColumn>
		        <asp:BoundColumn DataField="Categoryname" HeaderText="Thư mục">
		        <HeaderStyle CssClass="UN_Header" />
                <ItemStyle CssClass="UN_Item" Width="90" />
		        </asp:BoundColumn>
		        <asp:TemplateColumn HeaderText="Tác giả">
                    <ItemTemplate>
                        <asp:Label ID="Label7" runat="server" Text='<%# GetUserName(DataBinder.Eval(Container.DataItem,"Userid")) %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle CssClass="UN_Header" />
                    <ItemStyle CssClass="UN_Item" Width="40" />
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="Ẩn/Hiện">
                    <ItemTemplate>
                        <asp:Label ID="Label18" runat="server" Text='<%# iif(DataBinder.Eval(Container.DataItem,"isactive"),"Hiện","Ẩn") %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle CssClass="UN_Header" />
                    <ItemStyle Width="20" CssClass="UN_Item" />
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="B/luận">
			        <ItemTemplate>
				        <asp:Label ID="Label1" runat="server" Text='<%# iif(DataBinder.Eval(Container.DataItem, "BinhLuan")="True","Có","Không") %>'></asp:Label>
			        </ItemTemplate>
			        <HeaderStyle CssClass="UN_Header" />
                    <ItemStyle Width="20" CssClass="UN_Item" />
		        </asp:TemplateColumn>
	        </Columns>
	        <PagerStyle HorizontalAlign="Left" ForeColor="#000066" BackColor="White" Mode="NumericPages"></PagerStyle>
        </asp:datagrid>
<script type="text/javascript" language="javascript">
$(function () {
        // Datepicker
        $('.DatetimePicker_Textbox').datepicker({
            inline: true,
            showAnim: 'slideDown',
            duration: 100,
            changeMonth: true,
            changeYear: true,
            showWeek: true,
            showOn: 'both',
            buttonImage: '/images/calendar.png',
            buttonImageOnly: true,
            showButtonPanel: true
        });
    });
</script>    
    </div>
    </form>
</body>
</html>
